package cn.jnetty.api;

import io.netty.channel.ChannelHandlerContext;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/4/2 17:23
 * 描述：消息处理
 */
public interface JnettyHandler<T> {
    void channelRead0(ChannelHandlerContext ctx, T msg) throws Exception;
    void channelActive(ChannelHandlerContext ctx) throws Exception;
    void channelInactive(ChannelHandlerContext ctx) throws Exception;
    void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception;
    void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;
}
